package com.wang.other_test.test;

import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;

import java.util.List;

/**
 * @author: lvyan
 * @date: 2022/9/26
 * @description:
 */
@Data
public class Answer {
    //当type为1时，说明只有一个答案，list设为空
    @JsonInclude(JsonInclude.Include.NON_NULL)
    public String test;
    @JsonInclude(JsonInclude.Include.NON_NULL)
    public List<Answer> list;
//    public String text;

    @JsonInclude(JsonInclude.Include.NON_NULL)
    public Integer type;

    public Answer() {
    }

    public Answer(String test, Integer type) {
        this.test = test;
        this.type = type;
    }

    public Answer(List<Answer> list, Integer type) {
        this.list = list;
        this.type = type;
    }
}
